{
char *err;
int value = strtoul(arg, &err, 10);
+
if ((err && *err) || value < 1 || value > 4) {
uqmi_add_error("Invalid Channel-ID value. Allowed: [1,2,3,4]");
return QMI_CMD_EXIT;
QMI_INIT(slot, uim_slot),
QMI_INIT_ARRAY(aid, aid, (strlen(arg) / 2)),
};
-
+
if (!uim_slot) {
uqmi_add_error("UIM-Slot not set");
struct qmi_uim_logical_channel_request data = {
QMI_INIT(slot, uim_slot),
QMI_INIT(channel_id, channel_id),
- };
+ };
if (!uim_slot) {
uqmi_add_error("UIM-Slot not set. Use --uim-slot <slot> to set it.");
QMI_INIT(channel_id, channel_id),
QMI_INIT_ARRAY(apdu, apdu, (strlen(arg) / 2)),
};
-
if (!uim_slot) {
uqmi_add_error("UIM-Slot not set. Use --uim-slot <slot> to set it.");